#define _CRT_SECURE_NO_WARNINGS 1
//#include"progress.h"
#include<string.h>
 #include<stdio.h>
#include<stdlib.h>
 #define SHAPE '#'
 char arr[101];
 void profunc()
 {
     memset(arr, 0, sizeof(arr));
     int begin = 0;
     char* lable = "|/-\\";
     int len = strlen(lable);
       while (begin <= 100)
       {
          printf("[%-100s][%d%%][%c]\r", arr, begin, lable[begin % len]);
          fflush(stdout);
          Sleep(20);
         arr[begin] = SHAPE;
         begin++;
       }
       printf("\n");
   }
 int main()
 {
     profunc();
     return 0;
 }